using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

using Microsoft.SharePoint;
using Microsoft.SharePoint.Workflow;
using Microsoft.SharePoint.WorkflowActions;


namespace @SolutionName {
  public sealed partial class @WorkflowTemplateName : StateMachineWorkflowActivity {

    public @WorkflowTemplateName() {
      InitializeComponent();
    }

    public SPWorkflowActivationProperties workflowProperties = 
      new Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties();
    public String HistoryDescription = default(System.String);
    public String HistoryOutcome = default(System.String);

    private void logActivated_MethodInvoking(object sender, EventArgs e) {
      HistoryDescription = "Workflow instance activated";
      HistoryOutcome = "Workflow instance has ID of " + workflowProperties.WorkflowId.ToString();
    }

    private void logCompleted_MethodInvoking(object sender, EventArgs e) {
      HistoryDescription = "Workflow instance completed";
      HistoryOutcome = "Workflow instance has ID of " + workflowProperties.WorkflowId.ToString();
    }

  }
}

